package com.shchuangzhi.smartguard.core;

/**
 * Created by j_hu on 5/3/17.
 */

public class Consts {
    public static final String PASSWORD_SALT = "*&@(#";
    public static final String APP_FULL_NAME = "com.shchuangzhi.smartguard";

    public static final String SETTINGS_FRAGMENT_NAME = "fragment_settings";
    public static final String TERMINAL_FRAGMENT_NAME = "fragment_terminal";
    public static final String STATS_FRAGMENT_NAME = "fragment_stats";
    public static final String EVENT_FRAGMENT_NAME = "fragment_event";
    public static final String RECEIVER_FRAGMENT_NAME = "fragment_receiver";

    public static final String PREF_KEY_LOGIN_AUTO = "login_auto";
    public static final String PREF_KEY_LOGIN_ACCOUNT = "login_account";
    public static final String PREF_KEY_LOGIN_PWD = "login_pwd";

    public static final String TERMINAL_TIME_DESC = "主机时间";

    public static final String COMMAND_EMPTY = "command.empty";
    public static final String COMMAND_DECISION = "command.decision";
    public static final String COMMAND_REQ_META_SYNC = "meta.sync";
    public static final String COMMAND_REQ_RECEIVER_DATA_SYNC = "receiver.data.sync";
    public static final String COMMAND_REQ_IMAGE_UPDATE = "image.update";
    public static final String COMMAND_REQ_INOUT_UPLOAD = "inout.upload";
    public static final String COMMAND_REQ_HEALTHCHECK = "network.health";
    public static final String COMMAND_RESP_TIME = "time.sync.resp";
    public static final String COMMAND_RESP_SCHOOL = "school.sync.resp";
    public static final String COMMAND_RESP_GRADE = "grade.sync.resp";
    public static final String COMMAND_RESP_CLASS = "class.sync.resp";
    public static final String COMMAND_RESP_STUDENT = "student.sync.resp";
    public static final String COMMAND_RESP_TEACHER = "teacher.sync.resp";
    public static final String COMMAND_RESP_CARD = "card.sync.resp";
    public static final String COMMAND_RESP_STUDENT_STATE = "student.state.sync.resp";
    public static final String COMMAND_RESP_AUTO_SWITCH_TIME = "auto.switch.time.sync.resp";
    public static final String COMMAND_RESP_INOUT_STATS = "inout.stats.sync.resp";
    public static final String COMMAND_RESP_OUT_STATS = "out.stats.sync.resp";
    public static final String COMMAND_RESP_INOUT_RECORD = "inout.upload.resp";
    public static final String COMMAND_RESP_RECIEVER_DATA = "receiver.data.sync.resp";
    public static final String COMMAND_RESP_IMAGE_UPDATE = "image.update.resp";
    public static final String COMMAND_HANDLE_ERROR = "主机通讯异常";

    public static final String HOST_OK = "主机通讯正常";
    public static final String HOST_CONNECT_FAIL = "主机连接异常";
    public static final String NETWORK_OK = "外网连接正常";
    public static final String NETWORK_FAIL = "外网连接异常";

    public static final int JOB_TIME_TICK = 1000;
    public static final int JOB_CURRENT_TIME_PRINT = 1001;
    public static final int JOB_DATA_SYNC = 1002;
    public static final int JOB_NETWORK_CHECK = 1003;
    public static final int JOB_AUTO_MODE_SWITCH = 1004;
    public static final int JOB_RECEIVER_DATA_SYNC = 1005;

    public static final int NOTIFY_DATA_SYNC = 2000;
    public static final int NOTIFY_DATA_SYC_VIEW_LIST = 2001;
    public static final int NOTIFY_STATE_BUTTON_REFRESH = 2002;
    public static final int NOTIFY_CHECK_IN_OUT_LIST = 2003;
    public static final int NOTIFY_CHECK_IN_OUT_MAIN = 2004;
    public static final int NOTIFY_STATE_BUTTON_SWITCH_MODE = 2005;
    public static final int NOTIFY_INOUT_LIST_SWITCH_MODE = 2006;
    public static final int NOTIFY_MAIN_OP_SWITCH_MODE = 2007;
    public static final int NOTIFY_SCHOOL_CHANGED = 2008;
    public static final int NOTIFY_INOUT_STATS_CHANGED = 2010;
    public static final int NOTIFY_RECEIVER_DATA_VIEW_CHANGEED = 2011;
    public static final int NOTIFY_RECEIVER_DATA_SYNC = 2012;
    public static final int NOTIFY_IMAGE_UPLAOD = 2013;
    public static final int NOTIFY_IMAGE_CREDENTIAL_GET = 2014;
    public static final int NOTIFY_RECEIVER_STATS_CHANGED = 2015;

//    public static final int NOTIFY_MESSAGE_TEXT_PRIORITY = 2999;
//    public static final int NOTIFY_MESSAGE_BUTTON_REFRESH_PRIORITY = 3999;
//    public static final int NOTIFY_MESSAGE_INOUT_PRIORITY = 4999;


    public static final int INTERVAL_CURRENT_TIME_PRINT = 1000;
    public static final int INTERVAL_TIME_TICK = 500;
    public static final int INTERVAL_DATA_SYNC = 3000;
    public static final int INTERVAL_RECEIVER_DATA_SYNC = 3000;
    public static final int INTERVAL_HEALTHCHECK = 10000;
    public static final int INTERVAL_AUTO_MODE_SWITCH = 1000;

    public static final int MAX_IN_OUT_LIST_SIZE = 100;

    public static final int STATE_HEALTH = 0;
    public static final String STATE_HEALTH_NAME = "健康";
    public static final int STATE_OUT = 1;
    public static final String STATE_OUT_NAME = "再见";
    public static final int STATE_WATCH = 2;
    public static final String STATE_WATCH_NAME = "观察";
    public static final int STATE_SICK = 3;
    public static final String STATE_SICK_NAME = "服药";
    public static final int STATE_TEACHER_IN = 0;
    public static final String STATE_TEACHER_IN_NAME = "上班";
    public static final int STATE_TEACHER_OUT = 1;
    public static final String STATE_TEACHER_OUT_NAME = "下班";
    public static final int STATE_ABSENCE = -1;

    public static final int IN_MODE = 0;
    public static final String IN_MODE_NAME = "晨检";
    public static final int OUT_MODE = 1;
    public static final String OUT_MODE_NAME = "晚接";

    public static final String INFO_SYNC_SCHOOL = "正在下载学校信息";
    public static final String INFO_SYNC_SCHOOL_OK = "下载学校信息成功";
    public static final String INFO_SYNC_SCHOOL_FAIL = "下载学校信息失败";
    public static final String INFO_SYNC_GRADE = "正在下载年级信息";
    public static final String INFO_SYNC_GRADE_OK = "下载年级信息成功";
    public static final String INFO_SYNC_GRADE_FAIL = "下载年级信息失败";
    public static final String INFO_SYNC_CLASS = "正在下载班级信息";
    public static final String INFO_SYNC_CLASS_OK = "下载班级信息成功";
    public static final String INFO_SYNC_CLASS_FAIL = "下载班级信息失败";
    public static final String INFO_SYNC_STUDENT = "正在下载学生信息";
    public static final String INFO_SYNC_STUDENT_OK = "下载学生信息成功";
    public static final String INFO_SYNC_STUDENT_FAIL = "下载学生信息失败";
    public static final String INFO_SYNC_TEACHER = "正在下载教师信息";
    public static final String INFO_SYNC_TEACHER_OK = "下载教师信息成功";
    public static final String INFO_SYNC_TEACHER_FAIL = "下载教师信息失败";
    public static final String INFO_SYNC_CARD = "正在下载卡信息";
    public static final String INFO_SYNC_CARD_OK = "下载卡信息成功";
    public static final String INFO_SYNC_CARD_FAIL = "下载卡信息失败";
    public static final String INFO_SYNC_STUDENT_STATE = "正在下载刷卡状态定义信息";
    public static final String INFO_SYNC_STUDENT_STATE_OK = "下载刷卡状态定义信息成功";
    public static final String INFO_SYNC_STUDENT_STATE_FAIL = "下载刷卡状态定义信息失败";
    public static final String INFO_SYNC_AUTO_SWITCH_TIME_OK = "下载自动晚接切换时间成功";
    public static final String INFO_SYNC_STATS_OK = "下载统计数据成功";
    public static final String INFO_SYNC_STATS_FAIL = "下载统计数据失败";
    public static final String INFO_SYNC_RECEIVER_DATA = "下载教室机数据";
    public static final String INFO_UPLOAD_RECORD = "正在上传刷卡数据";
    public static final String INFO_UPLOAD_RECORD_OK = "上传刷卡数据<%d>成功<%d>";
    public static final String INFO_UPLOAD_RECORD_FAIL = "上传刷卡数据<%d>失败<%d>";

    public static final String SYSTEM_INFO = "系统提示";
    public static final String CONFIRM_EXIT = "确定要退出吗?";
    public static final String POSITIVE_BUTTON = "确定";
    public static final String NEGATIVE_BUTTON = "取消";
    public static final String INVALID_TERMINAL_NAME = "无效的门口机名";

    public static final String SPEECH_STATE_LOCKED = "状态已锁定";
    public static final String SPEECH_INVALID = "请再刷一次";
    public static final String MANUAL_FORBIDDEN = "手动刷卡无效";
    public static final String SWIPE_FAIL = "刷卡失败";
    public static final String SPEECH_CHECK_IN_DUPLICATED = "重复刷卡";

    public static final String META_COUNT_TITLE = "同步数据汇总";
    public static final String META_GRADE_COUNT = "同步年级总数：%d";
    public static final String META_CLASS_COUNT = "同步班级总数：%d";
    public static final String META_DEPT_COUNT = "同步部门总数：%d";
    public static final String META_DUTY_COUNT = "同步岗位总数：%d";
    public static final String META_STUDENT_COUNT = "同步学生总数：%d";
    public static final String META_TEACHER_COUNT = "同步教师总数：%d";
    public static final String META_STUDENT_CARD_COUNT = "同步学生卡总数：%d";
    public static final String META_TEACHER_CARD_COUNT = "同步教师卡总数：%d";
    public static final String TITLE_APP_ABOUT = "软件信息";
    public static final String TITLE_APP_VERSION = "软件版本：%s(%s)";
    public static final String UPLOAD_DB_OK = "数据文件上传成功！";
    public static final String UPLOAD_DB_FAIL = "数据文件上传失败！";
    public static final String UPLOAD_IMAGE_CANCEL = "取消图片上传";
    public static final String UPLOAD_IMAGE_FAIL = "图片上传失败";
    public static final String UPLOAD_IMAGE_OK = "图片上传成功";
}
